<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<%@ taglib tagdir="/WEB-INF/tags" prefix="matrix"%>
<%@ taglib uri="http://matrixcsm.zkingsoft.com" prefix="cms"%>
<cms:ads   code="'ZY_GongSiXinWen_0',
'ZY_XingYeXinWen_1',
'ZY_QiTa_2',
'ZY_TongZhiGongGao_3',
'ZY_GongSiXinWen_4',
'ews_5',
'img_101646525',
'ZY_ZhongGuoYiYaoJiTuan_7',
'ZY_8_8',
'ZY_YueRi_9',
'img_393609646',
'ZY_NianGuo_11',
'ZY_12_12',
'ZY_BingChengZuoYouYing_13',
'img_460972782',
'ZY_GuoYaoKongGuShaoYang_15',
'ZY_16_16',
'ZY_ZhaiYaoYue_17',
'ZY_XingYeXinWen_18',
'ews_19',
'img_125064573',
'ZY_ZhongGuoYiYaoJiTuan_21',
'ZY_22_22',
'ZY_YueRi_23',
'img_177857738',
'ZY_NianGuo_25',
'ZY_26_26',
'ZY_BingChengZuoYouYing_27',
'img_758638274',
'ZY_GuoYaoKongGuShaoYang_29',
'ZY_30_30',
'ZY_ZhaiYaoYue_31',
'ZY_QiTa_32',
'ther_33',
'img_855320655',
'ZY_ZhongGuoYiYaoJiTuan_35',
'ZY_36_36',
'ZY_YueRi_37',
'img_170964563',
'ZY_NianGuo_39',
'ZY_40_40',
'ZY_BingChengZuoYouYing_41',
'img_189665867',
'ZY_GuoYaoKongGuShaoYang_43',
'ZY_44_44',
'ZY_ZhaiYaoYue_45',
'ZY_TongZhiGongGao_46',
'otice_47',
'img_771743608',
'ZY_ZhongGuoYiYaoJiTuan_49',
'ZY_50_50',
'ZY_YueRi_51',
'img_178869594',
'ZY_NianGuo_53',
'ZY_54_54',
'ZY_BingChengZuoYouYing_55',
'img_815271844',
'ZY_GuoYaoKongGuShaoYang_57',
'ZY_58_58',
'ZY_ZhaiYaoYue_59',
'img_762370090'
"  ></cms:ads>
<!doctype html>
<html>
 <head> 
  <meta charset="utf-8"> 
  <link rel="icon" sizes="any" href="${浏览器logo}">
  <title>${网页标题}</title>
  <meta http-equiv="Cache-Control" content="no-cache"> 
  <meta content="telephone=no" name="format-detection"> 
  <meta name="HandheldFriendly" content="true"> 
  <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=2.0"> 
  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"> 
  <link rel="stylesheet" href="http://hwfile.jyymatrix.cc/gzzx/moblie/css/style.css">
  <link rel="stylesheet" href="http://hwfile.jyymatrix.cc/gzzx/moblie/css/animate.min.css">
  <link rel="stylesheet" type="text/css" href="http://hwfile.jyymatrix.cc/gzzx/moblie/css/swiper-3.3.1.min.css">
  <script type="text/javascript" src="http://hwfile.jyymatrix.cc/gzzx/moblie/js/jquery-1.10.2.min.js"></script>
  <meta name="keywords" content="${网页关键词}">
  <meta name="description" content="${网页描述 }">
 </head> 
 <body> 
  <!--头部导航star-->
  <jsp:include page="_top.jsp"></jsp:include>
  <!--头部导航end--> 
  <!--标题图片--> 
  <div class="titleimg newsbg" style=" width: 100%;height: 2rem;background-size: 100% 100%">
   <div class="w_width">
    <img src="${img_762370090.adImg}" alt="" style="width: 100%;height: 2rem;display: block;" data-type="ad" data-id="${img_762370090.adId}">
   </div> 
  </div> 
  <!--标题图片end--> 
  <div class="minwiper"> 
   <div class="slideTxtBox"> 
    <div class="swip_box">
     <div class="swiper-container swiper1" id="swiper-container1"> 
      <div class="swiper-wrapper"> 
       <div class="swiper-slide ">
        <span class=""><a href="${path }/do/redirect/mobile/news?type=companyNews" title="行业新闻" class="zy" data-type="ad" data-id="${ZY_GongSiXinWen_0.adId}">${ZY_GongSiXinWen_0.adTitle}</a></span>
       </div> 
      </div>
     </div> 
    </div> 
    <div class="w_width"> 
     <div class="comt toudilist"> 
      <!--行业新闻--> 
      <div class="comt"> 
       <div class="new_list">
        <div class="centera"> 
         <div id="tablea" class="tablea"> 
          <div class="box">
           <ul>
            <cms:arts var="gsxw" code="${param.type }" pageSize="4" pageNow="${param.pageNow }"></cms:arts>
            <c:forEach var="art" items="${gsxw }">
             <li class="cq_li">
<%--              <a href="${path }/do/redirect/mobile/newsDeatil?id=${art.artId}" >--%>
              <img src="${art.artImage}"  data-type="ad" data-id="${img_101646525.adId}">
<%--              <p> <em  data-type="ad" data-id="${ZY_ZhongGuoYiYaoJiTuan_7.adId}">${art.artTitle}</em>--%>
<%--               <span  data-type="ad" data-id="${ZY_8_8.adId}"><fmt:formatDate value="${art.artCreatetiem }" pattern="yyyy-MM-dd"/></span>--%>
<%--               <font  data-type="ad" data-id="${ZY_YueRi_9.adId}">${art.artAbstract}</font> </p> --%>
<%--               </a>--%>
             </li>

            </c:forEach>
            </ul>
           <!--分页start-->
           <div class="pageing">
            <div class="right">
             <ul class="pagination" style="display: flex;justify-content: center;">
              <c:forEach end="${recodeCount }" begin="1" var="index"
                         varStatus="count">

                <c:if test="${recodeCount > 1}">
                 <li style="border: 1px solid #ccc;padding: 0.1rem;margin-right: 0.1rem;">
                   <a  href="${path }/do/redirect/mobile/news?type=${param.type }&&pageNow=${index-1}">${index}</a>
                 </li>
                </c:if>

              </c:forEach>
             </ul>
            </div>
           </div>
          </div> 
         </div> 
        </div> 
       </div> 
      </div> 

  </div> 
  <!--底部--> 
  <jsp:include page="_footer.jsp"></jsp:include> 
  <!--底部end--> 
  <script src="http://hwfile.jyymatrix.cc/gzzx/moblie/js/rem.js"></script>
  <script type="text/javascript" src="http://hwfile.jyymatrix.cc/gzzx/moblie/js/swiper-3.3.1.jquery.min.js"></script>
  <script type="text/javascript" src="http://hwfile.jyymatrix.cc/gzzx/moblie/js/mian.js"></script>
  <script>

   var type = "${param.type }";
   if(type == 'companyNews'){
    checkRouter('0');
   }else if(type == 'industryNews'){
    checkRouter('1');
   }else if(type == 'other'){
    checkRouter('2');
   }else if(type == 'inform'){
    checkRouter('3');
   }

   var list = $('.toudilist')[0].children
  console.log(list);
   function checkRouter(val){
    let checkList = list[0].parentNode.parentNode.parentNode.children[0].children[0].children[0].children
    for (let i in checkList){
     if (val==i){
      checkList[val].classList.add('active-nav')
     } else {
      checkList[val].classList.remove('active-nav')
     }
    }
   }


        // let list = $('.toudilist')[0].children
        // for (let i =1;i<=list.length;i++){
        //     if (list[i]!=undefined){
        //         list[i].style='display:none'
        //     }
        //
        // }
        // function checkRouter(val){
        //     let checkList = list[val].parentNode.parentNode.parentNode.children[0].children[0].children[0].children
        //     for (let i in list){
        //         if (val==i){
        //             list[val].style='display:block'
        //             checkList[val].classList.add('active-nav')
        //         } else {
        //             list[i].style='display:none;!important'
        //             checkList[val].classList.remove('active-nav')
        //         }
        //     }
        // }
    </script> 
  <script type="text/javascript" src="http://hwfile.jyymatrix.cc/gzzx/moblie/js/swiper-3.3.1.jquery.min.js"></script>
  <script type="text/javascript" src="http://hwfile.jyymatrix.cc/gzzx/moblie/js/mian.js"></script>
  <script>        
        var mySwiper2 = new Swiper('#swiper-container1',{
          watchSlidesProgress : true,
          watchSlidesVisibility : true,
          slidesPerView :3,
          prevButton:'.button-prev',
          nextButton:'.button-next',
          })
          window.onload = function () {
              var inx = $('#swiper-container1 .swiper-slide.active-nav').index();
                 mySwiper2.slideTo(inx);
                  
              }
    </script>  
 </body>
</html>